import request from '@/utils/request'

// 查询缴费项目列表
export function listActivity(query) {
  return request({
    url: '/campus/activity/list',
    method: 'get',
    params: query
  })
}
export function listActAll(query) {
  return request({
    url: '/campus/activity/listAll',
    method: 'get',
    params: query
  })
}
// 查询缴费项目详细
export function getActivity(actId) {
  return request({
    url: '/campus/activity/' + actId,
    method: 'get'
  })
}

// 新增缴费项目
export function addActivity(data) {
  return request({
    url: '/campus/activity',
    method: 'post',
    data: data
  })
}

// 修改缴费项目
export function updateActivity(data) {
  return request({
    url: '/campus/activity/put',
    method: 'post',
    data: data
  })
}

// 删除缴费项目
export function delActivity(actId) {
  return request({
    url: '/campus/activity/' + actId+'/delete',
    method: 'post'
  })
}
